﻿@using Library
@model Ecommerce.Models.SettingsViewModel

@{
    ViewBag.Title = NOWCulture.GetString("Settings");
    Layout = "_Layout.cshtml";
}

<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("Settings", "Admin", FormMethod.Post, new { @class = "form-horizontal", }))
{
    @Html.AntiForgeryToken()
    <div class="form-group">
        <label class="col-sm-2 control-label">@NOWCulture.GetString("Company name")</label>
        <div class="col-sm-10">
            @Html.TextBoxFor(m => m.CompanyName, new { @class = "form-control" })
            @Html.ValidationMessageFor(m => m.CompanyName, "", new { @class = "text-danger" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">@NOWCulture.GetString("Copyright")</label>
        <div class="col-sm-10">
            @Html.TextAreaFor(m => m.Copyright, new { @class = "form-control" })
            @Html.ValidationMessageFor(m => m.Copyright, "", new { @class = "text-danger" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">@NOWCulture.GetString("Keywords")</label>
        <div class="col-sm-10">
            @Html.TextAreaFor(m => m.Keywords, new { @class = "form-control", @maxlength = 150, @rows = 3 })
            @Html.ValidationMessageFor(m => m.Keywords, "", new { @class = "text-danger" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">@NOWCulture.GetString("Description")</label>
        <div class="col-sm-10">
            @Html.TextAreaFor(m => m.Description, new { @class = "form-control", @maxlength = 200, @rows = 3 })
            @Html.ValidationMessageFor(m => m.Description, "", new {@class = "text-danger"})
        </div>
    </div>
    <div class="form-group">
        <div class="pull-right">
            <input type="reset" class="btn btn-default" value="@NOWCulture.GetString("Reset")">
            <input type="submit" class="btn btn-primary" value="@NOWCulture.GetString("Save")">
        </div>
        <div class="clearfix"></div>
    </div>
}
@section scripts
{
    @(HttpContext.Current.IsDebuggingEnabled ? Scripts.Render("~/bundles/admin-settings") : Scripts.RenderFormat(@"<script src=""{0}"" async defer></script>", "~/bundles/admin-settings"))
}